package main

import (
	"fmt"
	"strconv"
	"time"
)

//CusType CusType
type CardListConf_Default struct {
	CardDetail_Default [][]string
}

//User User
type User struct {
	Name    string
	Xstrata map[string]string
}

func main() {
	u := User{Name: "aaa"}
	x := make(map[string]string)
	u.Xstrata = x
	tt(x)
	for k, v := range u.Xstrata {
		fmt.Printf("key: %s, value: %s\n\r", k, v)
	}
	sx := "tttt"
	ss(&sx)
	fmt.Printf("yaojiehong: %s\n\r", sx)

	y, m, d := time.Now().Date()
	sint, _ := strconv.Atoi(fmt.Sprintf("%d%02d%02d", y, m, d))
	fmt.Println("fmt rigth way to get New YYYYMMDD ", sint)
}

func tt(x map[string]string) {
	x["test"] = "tst"
}

func ss(cn *string) {
	*cn = "test"
}
